package day18;



public class WeekDemo {
    public static void main(String[] args) {
        Week[] values = Week.values();
        for (Week value : values) {
            System.out.println(value);
        }
        String name = Week.FRIDAY.name();
        System.out.println(name);
        int ordinal = Week.FRIDAY.ordinal();
        System.out.println(ordinal);
        int i = Week.FRIDAY.compareTo(Week.MONDAY);
        System.out.println(i);
        String s = Week.THURSDAY.toString();
        System.out.println(s);
        Week monday = Week.valueOf(Week.class, "MONDAY");
        System.out.println(monday);

    }
}
